-- GENERATED SPELL FOR [Thunderhead Consort] --


function spell0_6380(pUnit, Event) --@Lightning Breath,n/a--
pUnit:FullCastSpellOnTarget(36594,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_6380', 3000, 1)
end

function spell1_6380(pUnit, Event) --@Shock,n/a--
pUnit:FullCastSpellOnTarget(12553,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_6380', 0, 1)
end

function Sorts_6380(pUnit, Event)
local choix_sorts_6380 = math.random(0, 1)
if choix_sorts_6380 == 0 then
pUnit:RegisterEvent('spell0_6380', 1, 1)
end
if choix_sorts_6380 == 1 then
pUnit:RegisterEvent('spell1_6380', 1, 1)
end
end

function mob6380_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_6380', math.random(1500, 3000), 1)
end

function mob6380_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob6380_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob6380_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(6380, 1, 'mob6380_Action')
RegisterUnitEvent(6380, 2, 'mob6380_Leave')
RegisterUnitEvent(6380, 3, 'mob6380_Kill')
RegisterUnitEvent(6380, 4, 'mob6380_Die')
